<template>
  <div class="love-toast">
    <transition name="fade">
      <div class="container">
        {{message}}
      </div>
    </transition>
  </div>
</template>

<script>
export default {
  name: 'love-toast',
  props: {
    message: {
      type: String,
      required: true,
      validator: function (value) {
        return true;
      }
    }
  }
}
</script>

<style scoped>
  .love-toast,.container {display: flex; align-items: center;justify-content: center;align-content: center;}
  .love-toast {position: fixed; width: 100%; height: 100%;  top: 0;z-index: 999;}
  .container {width: 65%;background-color: rgba(90, 67, 152, 0.9);padding: 2rem;position: relative;font-size: 2rem; color: #dec852}
</style>
